package com.idea.errorcode.doc;

import java.util.Map;


/**
 * @author: 沉香
 * @date: 2025/04/13
 * @description: 异常码层级配置对象
 */
public class HierarchyConfig {

    /**
     * 含义
     */
    private String name;

    /**
     * 长度
     */
    private int length;

    /**
     * key:该长度下的异常码片段，value:异常码片段的含义
     */
    private Map<String, String> mapping;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public Map<String, String> getMapping() {
        return mapping;
    }

    public void setMapping(Map<String, String> mapping) {
        this.mapping = mapping;
    }
}